import fetch from '@/config/fetch'


export const addCustomer = data => fetch('/sn/customer/addCustomer', data, 'POST');
export const customerList = data => fetch('/sn/customer/queryCustomer', data, 'POST');
export const deleteCustomer = data => fetch('/sn/customer/deleteCustomer', data, 'POST');
export const updateCustomer = data => fetch('/sn/customer/updateCustomer', data, 'POST');
export const login = data => fetch('/sn/customer/login', data, 'POST');
export const queryscorelog = data => fetch('/sn/score/queryScoreLog', data, 'POST');
export const customerDetail = data => fetch('/sn/customer/customerDetail', data, 'POST');
export const updatePwd = data => fetch('/sn/customer/updatePwd', data, 'POST');
export const addOrder = data => fetch('/sn/score/addOrder', data, 'POST');
export const queryVipTip = data => fetch('/sn/customer/queryVipSearchList', data, 'POST');

export const addGift = data => fetch('/sn/gift/add', data, 'POST');
export const queryGift = data => fetch('/sn/gift/query', data, 'POST');
export const deleteGift = data => fetch('/sn/gift/delete', data, 'POST');



